<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登陆页面</title>
</head>
<legend><font size=5>签到系统：</font></legend>
<body style="background:url(images/2.jpg)"><center>
<%--表单--%>
  

  <form action="test.jsp" method="post">
  账号：<input type="text" name="username" id="username"><br>
  密码：<input type="password" name="password"><br>
  
   <% String name=(String)request.getParameter("username");
       session.setAttribute("name",name);
       %>
       
  <input type="submit" value="登陆">
  <!-- EL语句，后面验证表单时，验证错误反回信息-->
  ${error}
  </form>
学生一默认账号：lupeifeng     密码：123<br>
学生二默认账号：qiaofuyuan     密码：123
</center></body>
</html>